var http = require('http');
//引入silly-datetime
var sd = require('silly-datetime')

 var app=http.createServer(function(req,res){
    res.writeHead(200,{"Content-Type":"text/html;charset=utf-8"})

    var date = sd.format(new Date(),'YYYY-MM-DD')
     res.write("你好，nodejs"+date);
    res.end();
});
app.listen(8002,'127.0.0.1')